<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
        <meta name="layout" content="main" />
        <title>Show Workflow</title>
    </head>
    <body>
        <div class="nav">
            <span class="menuButton"><a class="home" href="${createLinkTo(dir:'')}">Home</a></span>
            <span class="menuButton"><g:link class="list" action="list">Workflow List</g:link></span>
            <span class="menuButton"><g:link class="create" action="create">New Workflow</g:link></span>
        </div>
        <div class="body">
            <h1>Show Workflow</h1>
            <g:if test="${flash.message}">
            <div class="message">${flash.message}</div>
            </g:if>
            <div class="dialog">
                <table>
                    <tbody>
                        <tr class="prop">
                            <td valign="top" class="name">Id:</td>
                            <td valign="top" class="value">${fieldValue(bean:abstractWorkflow, field:'id')}</td>
                        </tr>
                        <tr class="prop">
                            <td valign="top" class="name">Description:</td>
                            <td valign="top" class="value">${fieldValue(bean:abstractWorkflow, field:'description')}</td>
                        </tr>
                    </tbody>
                </table>
            </div>
            <div id="parameters">
                <table>
                    <thead>
                        <tr>
                            <g:sortableColumn property="id" title="Id" />
                            <g:sortableColumn property="parameterClass" title="Parameter Class" />
                            <g:sortableColumn property="parameterName" title="Parameter Name" />
                            <g:sortableColumn property="parameterType" title="Parameter Type" />
                        </tr>
                    </thead>
                    <tbody>
                    <g:each in="${(0..<abstractWorkflow.parameterType.size())}" status="i" var="j">
                        <tr class="${(i % 2) == 0 ? 'odd' : 'even'}">
                            <td>${j}</td>
                            <td>${abstractWorkflow.parameterName[j]}</td>
                            <td>${abstractWorkflow.parameterClass[j]}</td>
                            <td>${abstractWorkflow.parameterType[j]}</td>
                        </tr>
                    </g:each>
                    </tbody>
                </table>
            </div>
            <div class="buttons">
                <g:form>
                    <input type="hidden" name="id" value="${abstractWorkflow?.id}" />
                    <span class="button"><g:actionSubmit class="delete" onclick="return confirm('Are you sure?');" value="Delete" /></span>
                </g:form>
            </div>
        </div>
    </body>
</html>
